package cn.edu.zafu.bigdata.x.bd121.car;

/**
 * Car测试类
 *
 * @author 202211090121
 */
public class TestCar {
    public static void main(String[] args) {
        Vehicle[] vehicles = new Vehicle[3];

        vehicles[0] = new Car();
        vehicles[1] = new Bicycle();
        vehicles[2] = new Vehicle();

        for (Vehicle vehicle : vehicles) {
            vehicle.move();
        }
    }
}
